package com.itheima.c05_api_lambda;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Student {
    private String name;
    private double score;
    private int age;
    public int compare(Student s1, Student s2) {
        return s1.getAge()-s2.getAge();
    }
}
